package forms;

import java.util.ArrayList;
import java.util.List;

import org.apache.struts.action.ActionForm;

public class showappInfoform extends ActionForm {

	private String status = null;
	private String street = null;
	private String city = null;
	private String lstate =null;
	private String zip = null;
	private String areaCode =null;
	private String pnumber = null;
	private String first = null;
	private String middle = null;
	private String last = null;
	private String citizen = null;
	private String residency = null;
	private String residence = null;
	private String specialization = null;
	private int grade = -1;
	private String comments = null;
	private String username = "";
	private List<degreecollection> degrees = new ArrayList<degreecollection>();
	private List<reviewComments> rvcomments = new ArrayList<reviewComments>();
	private List<reviewerform> newreviewers = new ArrayList<reviewerform>();
	private int rvCount = -1;
	private int graderID = -1;
	private String nextGrader = "";
	private int appID = -1;
	
	public void reset(){
		this.status = null;
		this.street = null;
		this.city = null;
		this.lstate =null;
		this.zip = null;
		this.areaCode =null;
		this.pnumber = null;
		this.first = null;
		this.middle = null;
		this.last = null;
		this.citizen = null;
		this.residency = null;
		this.residence = null;
		this.specialization = null;
		this.grade = -1;
		this.comments = null;
		this.username = "";
		this.graderID = -1;
		this.newreviewers.clear();
		this.nextGrader = "";
		this.appID = -1;
	}
	
	
	
	public int getAppID() {
		return appID;
	}



	public void setAppID(int appID) {
		this.appID = appID;
	}



	public String getNextGrader() {
		return nextGrader;
	}



	public void setNextGrader(String nextGrader) {
		this.nextGrader = nextGrader;
	}



	public List<reviewerform> getNewreviewers() {
		return newreviewers;
	}



	public void setNewreviewers(List<reviewerform> newreviewers) {
		this.newreviewers = newreviewers;
	}

	public void clearNewreviewers(){
		newreviewers = new ArrayList<reviewerform>();
	}

	public void updateNewreviewers(reviewerform newitem){
		newreviewers.add(newitem);
	}
	
	public int getGraderID() {
		return graderID;
	}


	public void setGraderID(int graderID) {
		this.graderID = graderID;
	}


	public String getUsername() {
		return username;
	}


	public void setUsername(String username) {
		this.username = username;
	}


	public int getGrade() {
		return grade;
	}

	public void setGrade(int grade) {
		this.grade = grade;
	}

	public String getComments() {
		return comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}

	public void updateRvcomments(reviewComments newitem){
		rvcomments.add(newitem);
	}
	
	public List<reviewComments> getRvcomments() {
		return rvcomments;
	}
	
	public void resetRV(){
		rvcomments.clear();
		this.rvCount = -1;
	}

	public int getRvCount() {
		return rvCount;
	}

	public void setRvCount(int rvCount) {
		this.rvCount = rvCount;
	}

	public void setRvcomments(List<reviewComments> rvcomments) {
		this.rvcomments = rvcomments;
	}

	public void clearCollection(){
		degrees = new ArrayList<degreecollection>();
	}
	
	public void updateCollection(degreecollection newitem){
		degrees.add(newitem);
	}
	
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getStreet() {
		return street;
	}
	public void setStreet(String street) {
		this.street = street;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getLstate() {
		return lstate;
	}
	public void setLstate(String lstate) {
		this.lstate = lstate;
	}
	public String getZip() {
		return zip;
	}
	public void setZip(String zip) {
		this.zip = zip;
	}
	public String getAreaCode() {
		return areaCode;
	}
	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}
	public String getPnumber() {
		return pnumber;
	}
	public void setPnumber(String pnumber) {
		this.pnumber = pnumber;
	}
	public String getFirst() {
		return first;
	}
	public void setFirst(String first) {
		this.first = first;
	}
	public String getMiddle() {
		return middle;
	}
	public void setMiddle(String middle) {
		this.middle = middle;
	}
	public String getLast() {
		return last;
	}
	public void setLast(String last) {
		this.last = last;
	}
	public String getCitizen() {
		return citizen;
	}
	public void setCitizen(String citizen) {
		this.citizen = citizen;
	}
	public String getResidency() {
		return residency;
	}
	public void setResidency(String residency) {
		this.residency = residency;
	}
	public String getResidence() {
		return residence;
	}
	public void setResidence(String residence) {
		this.residence = residence;
	}
	public String getSpecialization() {
		return specialization;
	}
	public void setSpecialization(String specialization) {
		this.specialization = specialization;
	}
	public List<degreecollection> getDegrees() {
		return degrees;
	}
	public void setDegrees(List<degreecollection> degrees) {
		this.degrees = degrees;
	}
	
	
	
}
